﻿<vsx.ui:DialogWindow x:Class="Sasa.QualityTools.CodeAnalysis.FxCopIntegrator.UI.FxCopDictionaryEditorWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:vsx.ui="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.10.0"
        Title="FxCop Dictionary Editor" MinHeight="500" Height="500" MinWidth="600" Width="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TabControl Grid.Row="0" TabStripPlacement="Left">
            <TabItem Header="Recognized">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding Recognized}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <!--<DataGrid.CommandBindings>
                        <CommandBinding Command="ApplicationCommands.Paste" Executed="Paste" CanExecute="CanPaste"/>
                    </DataGrid.CommandBindings>-->
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Word" Binding="{Binding Value}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">A 'Recognized' term is included the list of terms that code analysis identifies as correctly spelled.</TextBlock>
                </Grid>
            </TabItem>
            <TabItem Header="Unrecognized">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding Unrecognized}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Word" Binding="{Binding Value}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">An 'Unrecognized' term is excluded the list of terms that code analysis identifies as correctly spelled.</TextBlock>
                </Grid>
            </TabItem>
            <TabItem Header="Deprecated">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding Deprecated}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Term" Binding="{Binding Value}" Width="200"/>
                            <DataGridTextColumn Header="Preferred Alternate" Binding="{Binding Alternate}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">A 'Deprecated' term is included the list of terms that code analysis identifies as deprecated. 'Preferred Alternate' is used as a suggested alternate term in the violation message.</TextBlock>
                </Grid>
            </TabItem>
            <TabItem Header="Compound">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding Compound}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Term" Binding="{Binding Value}" Width="200"/>
                            <DataGridTextColumn Header="Compound Alternate" Binding="{Binding Alternate}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">A 'Compound' term is included the list of terms that code analysis identifies as a compound word. 'Compound Alternate' is used as a suggested alternate term in the violation message.</TextBlock>
                </Grid>
            </TabItem>
            <TabItem Header="Discrete Exceptions">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding DiscreteExceptions}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Term" Binding="{Binding Value}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">A 'Discrete Exceptions' term is excluded the list of terms that code analysis identifies as a single word.</TextBlock>
                </Grid>
            </TabItem>
            <TabItem Header="Acronyms">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <DataGrid Grid.Row="0" ItemsSource="{Binding CasingExceptions}" CanUserAddRows="True" AutoGenerateColumns="False">
                        <DataGrid.Columns>
                            <DataGridTextColumn Header="Acronym" Binding="{Binding Value}" Width="200"/>
                        </DataGrid.Columns>
                    </DataGrid>
                    <TextBlock Grid.Row="1" TextWrapping="Wrap" Margin="5">An 'Acronyms' is included the list of terms that code analysis identifies as correctly spelled.</TextBlock>
                </Grid>
            </TabItem>
        </TabControl>
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Command="{Binding SaveAndCloseCommand}" Margin="5" Width="80">Save</Button>
            <Button Command="{Binding SaveCommand}" Margin="5" Width="80">Apply</Button>
            <Button Command="{Binding CloseCommand}" Margin="5" Width="80">Cancel</Button>
        </StackPanel>
    </Grid>
</vsx.ui:DialogWindow>
